package com.sunyur.tailor.channel.common.middle.base;

import lombok.Data;

import java.io.Serializable;

/**
 *
 * @Author 99288
 * @Description 前置机标准返回实体类
 **/
@Data
public class ChannelResult<T> implements Serializable {

    private String code;

    private String message;

    private T content;

    public void setSuccess(String code, String message, T content){
        this.code = code;
        this.message = message;
        this.content = content;
    }

    public void setError(String code, String message){
        this.code = code;
        this.message = message;
    }
}

